var api = require("../../api.js"),
  r = "",
  app = getApp();
Page({
  /**
   * 页面的初始数据
   */
  data: {
    currentTab: 0,
    priceData: [],
    sHeight: ""
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
    console.log(options);
    r = this;
    r.setData({
       orderId: options.orderid
    }),
     r.initData(); //初始化数据
  },
  initData: function() {
    var t = new Object();
    (t.orderId = r.data.orderId),
      wx.request({
        url: api.mine.orderDetail,
        data: t,
        success: function(res) {
          if (res.statusCode == 200 && res.data.code == 200) {
            var n = res.data.data;
            r.setData({
              priceData: n
            });
          }
        }
      });
  }
});
